#pragma once
#include"test.h"
int my_strlen(char* p) {
	int count = 0;
	while (*p != '\0') {
		p++;
		count++;
	}
	return count;
}

void str_copy(char* arr, int m, int len) {
	int i = 0;
	for (i = m-1; i < len; i++) {
		printf("%c",arr[i]);
	}
}

void swap_t(int* m, int* n) {
	int p = *m;
	*m = *n;
	*n = p;
}

int cal(int* array, int n) {
	int sum = 0;
	int i = 0;
	for (i = 0; i < n; i++)
		sum += array[i];
	return sum;
}